package com.honghu.cloud.feign;


import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.OrderFormDto;

/**
 * 订单feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-order-service" ,path="/orderForm")
public interface OrderFormFeignClient {

	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public OrderFormDto selectByPrimaryKey(@RequestParam("id") Long id);
	
	
	@RequestMapping(value = "/apiForFeign/getSecondKillNoPayOrder", method = RequestMethod.GET)
	public List<OrderFormDto> getSecondKillNoPayOrder();
	
	@RequestMapping(value = "/apiForFeign/updateById", method = RequestMethod.POST)
	public void updateById(@RequestBody OrderFormDto obj);
	
}


